package com.btshop.goods;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

import com.util.IdWorker;

/**
 * @ClassName GoodsApplication
 * @Description 商品服务启动类
 * @Author by nike
 * @Date 2020/7/12 0:08
 * @Version V1.0
 **/
@SpringBootApplication
@EnableEurekaClient
@MapperScan({"com.btshop.goods.mapper"})
public class GoodsApplication {

    public static void main(String[] args) {
        SpringApplication.run(GoodsApplication.class, args);
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker(0l, 0l);
    }
}
